package com.zte.market.service.impl;

import com.zte.market.mapper.ProvinceMapper;
import com.zte.market.pojo.Province;
import com.zte.market.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProvinceServiceImpl implements ProvinceService {

    @Autowired
    private ProvinceMapper provinceMapper;

    @Override
    public List<Province> queryProvinces() {
        return provinceMapper.queryProvinces();
    }

    @Override
    public Integer queryProvinceId(String pName) {
        return provinceMapper.queryProvinceId(pName);
    }

    @Override
    public Integer queryProvinceName(String cName) {
        return provinceMapper.queryProvinceName(cName);
    }
}
